$__AUI_MODAL_SELECTOR: ".#{$aui-ns}-modal";

@mixin aui-modal-mixin-modal() {
    box-sizing: border-box;
    background-color: rgba(0,0,0,.65);
    display: none;
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;

    .aui-modal-content {
        box-sizing: border-box;
        position: relative;
        transform-style: preserve-3d;
        background-color: #ffffff;
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
        will-change: transform;
        backface-visibility: hidden;
        perspective: 1000;
    }

    .aui-modal-header {
        box-sizing: border-box;
        width: 100%;
        height: 56px;
    }

    .aui-modal-header-title {
        margin: 0;
    }
    .aui-modal-content .close {
        position: absolute;
        right: 0;
        top: 0;
        width: 60px;
        height: 56px;
        color: $aui-brand-black;
        text-align: center;
        cursor: pointer;
        transition: all .3s;
    }

    .aui-modal-content .close:hover {
        background-color: #fff;
    }

    .aui-modal-body {
        box-sizing: border-box;
    }

    .aui-modal-footer {
        box-sizing: border-box;
    }

}

@mixin aui-modal-create-modal($selector: $__AUI_MODAL_SELECTOR) {
    #{$selector} {
        @include aui-modal-mixin-modal();
    }
}

@include aui-vue-register-component("modal", (sel: $__AUI_MODAL_SELECTOR));
